package com.wwj.core.wawa.service;

import com.github.pagehelper.Page;
import com.wwj.core.wawa.entity.Banner;

import java.util.List;
import java.util.Map;

/**
 * Created by Auser on 2017/11/8.
 */
public interface IBannerService {

    Banner findById(int id)throws Exception;

    Page<Banner> findByPage(Map<String,Object> params,int offset,int limit)throws Exception;

    void createBanner(Banner banner)throws Exception;

    void updateBanner(Banner banner)throws Exception;

    void deleteBannerById(Integer id)throws Exception;
}
